#include "app_mqtt.h"
#include "log/log.h"
#include "unistd.h"

int app_mqtt_recvCb(char *json)
{
    log_debug("app_mqtt_recvCb: %s", json);

    return 0;
}

int main(int argc, char *argv[])
{
    app_mqtt_init();

    app_mqtt_registerRevCallback(app_mqtt_recvCb);

    app_mqtt_send("{\"conn_type\":1,\"id\":\"5859\",\"msg\":\"61626364\"}");

    sleep(100);

    app_mqtt_close();

    return 0;
}
